package com.atguigu.demo.mapper;

import com.atguigu.demo.entity.Tiger;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface TigerMapper {
    int insertTiger(Tiger tiger);

    int deleteTigerById(Integer tigerId);

    int updateTigerById(Tiger tiger);

    Tiger selectTigerById(Integer tigerId);

    List<Tiger> selectTigerList();

    void testDollar(String tableName);

    void updateTiger(Integer tigerId, @Param("tigerName") String tigerName2, int tigerAge, double tigerSalary);

    void updateTigerByMap(Map<String, Object> paramsMap);

    int selectTigerCount();

    double selectMaxSalary();

    List<Map<String,Object>> selectTigerInfoMaxSalary();

    void insertTigerWithAutoKey(Tiger tiger);

    Tiger selectTigerUseRM(Integer tigerId);
}
